package com.um.springboot.starter.service;

import com.um.springboot.starter.entity.MultipartFileParam;
import com.um.springboot.starter.orm.entity.Response;


/**
 * @author 邓南辉
 * @date 2019/12/19
 * @copyright 广州优匠科技有限公司
 */
public interface FileService {

    /**
     * 上传任意文件
     * @param param
     * @return
     */
    Response uploadAnyFile(MultipartFileParam param);
    /**
     * 上传任意文件（只内部调用）
     * @param param
     * @param subPath
     * @return
     */
    Response uploadAnyFile(MultipartFileParam param, String subPath);
    /**
     * 上传图片
     * @param param
     * @return
     */
    Response uploadImage(MultipartFileParam param);

    /**
     * 上传scorm课件包
     * @param param
     * @return
     */
    Response uploadScorm(MultipartFileParam param);

    /**
     * 上传h5课件包
     * @param param
     * @return
     */
    Response uploadH5Zip(MultipartFileParam param);

}
